﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AteneoLibri.UserControls
{
    public partial class MetroButton : System.Web.UI.UserControl
    {

        #region PROPERTIES
        public string Title { get; set; }

        public string Price { get; set; }

        public string Authors { get; set; }

        public string Seller { get; set; }

        public DateTime Date { get; set; }

        public ImageButton GoToDetails { get; set; }
        #endregion

        public event EventHandler DetailButtonClick;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                
            }
        }

        protected void btnDetails_Click(object sender, ImageClickEventArgs e)
        {
            if (DetailButtonClick != null)
            {
                DetailButtonClick(sender, e);
            }            
        }
    }    
}